package com.pine.dcts.core.event;

import java.util.ArrayList;
import java.util.List;


public abstract class JobMonitorEventObject {

    protected List<MessageListener> listener; //监听器容器

    public   JobMonitorEventObject(){
        listener=new ArrayList<>();
    }

    //给事件源绑定监听器
    public void addListener(MessageListener ren)
    {
        listener.add(ren);
    }



    public abstract void notifyObject(JobMessage jobMessage);
}
